package demo1;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:张熳
 * Date:2025-08-23
 * Time:21:35
 */
//继承
//父类 - Animal

public class Animal {
    public String name;
    public int age;

    public void eat(){
        System.out.println(this.name + " 正在吃饭...");
    }
}

